Add memory leak check #21

Runs unit tests via valgrind