tests rewrite.