test of methods related to username