fix gs basic tests by using a BytesIO instead of StringIO