Added tests to cppcheck and cpplint targets.
Formatting changes for cpplint.