testing logic of deadlines