create test for UrlRewritingTrait