[test][worker] Fix test string/bytes data creation for comparison

2 jobs for py2_py3_compatibility in 36 minutes and 22 seconds (queued for 9 seconds)