Added test for getAvailableRooms.

Cleaned test code.