Changed assertions in gates tests