Updated test that will rewrite the url and test that logic.