rewrite a test