unit test for username verification