adds test for user model mail method