test for url rewriting