test that work with redirect