Adding unit tests protecting ability to get dependencies with abstract class type hints in constructor params