Added review to enable DI during tests and written test for the cache module