Fix user profile test

Fix the user profile test. Not tested yet since I haven't actually completed the assignment, but should work. Change pulled from pull request #1