more comprehensive user profile test with docstrings