fixed test and added userprofile tests