Rewriting test