fix binding redirects in tests