Writing test for getHoursArray