Updated tests for 3 input gates