Better checking if internal classes can be mocked