Refactored test repository
Refactored temp in memory repository