few test cases added in user model