Add test to ensure disposal happens on redirect.