add custom 1.6 compliant inheritIO for better test diagnostics

+review REVIEW-5170