fixed errors when running all tests