Gate test