Move tests to a class.
Like swh-storage, so multiple backends can be tested with the same base test class.