Add test for simple rewrite.