[Reviewer: Andy] Add vg check option

Andy, can you review this change to print out valgrind errors when running make test
This also fixes the uninit condition, and tidies up a warning from the handlers test