fixed problem returning JSON representation of a user after calling the signup API
added tests for check usernames and roles in various scenarios