entity manager injection instead of doctrine for compatibility
basic unit tests