Added test to User model and operations