Test for ByHours