Fix bug with unit test lisnter not using the second parameter for specifying which stream wrapper class to use.