testing subprocess.popen with mocks