Test to check that redirect includes query string