invert logic tests for pin