fix for issue #3: color support for Windows
introduced TestListener to avoid code duplication