Ask about optocoupler

Hello, all.
The circuit about 4n36 I referred to its spec.is given below.
4N36 Circuit
Now the question is that I ground its pin 2 and pin 4, and if one pin is high, should pin 5 output a high level?
Or tell me how to test an optocoupler. Just let me connect a simple circuit to see the level change.
Good listening!
KAKU