User model test cases for record creation