update specs to Open3.popen3 rather than capture3