Add cppcheck linter to tests, fix the things it complains about
Merge pull request #11 from uber/cppcheck

Add cppcheck linter to tests, fix the things it complains about