add acceptance test for defer

basically a smoke test