Fixed unit tests for user.