fix broken api tests from misuse of grep