improved test when listener is creating redirect response