refactored the user resource test cases