I only know enough to get by, but I've messed optical encoders for steering wheels, so.....
Not much there to test
+
-
signal A
signal B
+ & - should be good if the LED is working
I'd start by testing the continuity between the detector side and the end of your wiring harness connector.
You can also put the leads between the ground and each of the signals on the detector side.
There should be voltage present when the light is let through (I'd assume 5v, but I've never used an optipac).