Implement deadlines
Deadline tests