Fix karma tests for auth and gitapi services