GateKeeper almost done. fix testAccess(int)