tests: use subprocess.Popen()

subprocess.check_output() is not available in Python 2.6