TST: unicode compat for test_astype_unicode (GH7758)