Test check_nickname_duplicate method