Test: Added valgrind memcheck support to smoke tests.