Code refactoring && test cases for lessonsToRoomDay() method.