[tests] Use `communicate`  for Popen in tests
[tests] Use `communicate`  for Popen in tests

madsbk/bohrium,bh107/bohrium,bh107/bohrium,madsbk/bohrium,madsbk/bohrium,bh107/bohrium,madsbk/bohrium,bh107/bohrium