and gate test