improved graph querying tests and fixed graph manipulation tests