added a test for user name to fix bug