wrote some tests for the user's email attribute