Added is valid test to user model test