A test for gate evaluation