[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)
Status Job ID Name Coverage
  Build
canceled #133342
docker-build
build

00:36:22

canceled #133314
docker-build
build

01:01:04