Added support for custom TextTestResult class.