Rewrite tests.