tests for delete and schedule