Rewrite a test