Added support for clearing delayed statuses, also added some test cases.