test rewrites