Rewrite test