implemented tests for deferred execution.