Improved error handling in TheoryWithLazyLoadingAttribute.cs