Fixed issue where test.sh fails to report an error when there is a valgrind error but no memory lead