Fixes build in unit tests with ctor for service context