added some tests for in mem repository