Added testcase to validate chaining of exit procedures