Testing your sensor is simple. Put your multimeter into continuity-test mode and touch the probes to the two leads. Then tilt to determine the angle at which the switch opens and closes.
When pointing down, the switch is Open Loop (no continuity).
When pointing up, the switch is closed (low resistance / continuous).