[#13] Minor cleanup in test script

Made a global for /dev/null instead of constantly opening and closing a file.