Merge pull request #228 from bastih/master

Fix test handling so that errors actually fail make execution
Add valgrind testing
Make new target .PHONY