adding tests on User model