tests: Add a test for finalizing the repo/adapter