Added valgrind/emulator to the golden test executable.

Also, fixed leak in main. The tests are already working!