fixed popen test