JC-1740 Added tests for UserProfileController.