Added a way to test getUserByEmail