Added functional testing for all functions in Userprofile