Add basic tests for in-memory repo