[test] deal with py3k's string types [applied]