More enhancements for user profile infra. Improved tests for user profiles.