refactored outside working hours tests