added unit tests for injected service components, and removed unused generic entity manager