Tests for defer and deferonce

Remove Todo
Merge pull request #72 from pksjce/Defer_flow_test_case

Tests for defer and deferonce