Added test for regular rewrites