Test the opaque shell script
Using popen3 in test, avoid creating tmp file