Added assertTrue(isinstance(output, unicode)) to tests