test lobby function