Rewrite adapter test suite