Add tests for MemoryRepo
fix memory repo
Parse info/grafts on MemoryRepo init
Refactor graftsinrepo tests