make tests more valgrind-friendly by not leaking memory
add a script to pull a branch and update submodules