Log start and stop time ranges for IllegalArgumentException and remove unrequired casting from the SlotTest