Contract tests for the InMemoryRepo complete.