Use a memory repository by default
Add tests