Adding test for asserting whether user information isValid or no.

Also refactored some existing test cases to make them pass.