fixed problem returning JSON representation of a user after calling the signup API
added tests for check usernames and roles in various scenarios
Merge pull request #418 from giastfader/issue_412_slow_get_user_profile

fixed problem returning JSON representation of a user after calling the signup API