Wrote tests for isValidUsername.