unit test and fix for listRooms