Working tests for query.
Working tests for vertex.