tested WaitingRoom for thread safety and fixed related bugs