Fixing test methods

using get_by_email() instead of get()
adapting to the new UserDAO API