Fixed JUnit tests for users