Functional and Unit test for LeaveRedirect
Everything working except the evil in-event flush