Test fix: Assert DXAPIError instead of AttributeError under new behavior