Changed in memory repository to a generic one. In attempt to create tests for restful api.