Repositories::Memory class added. Tests refactored.