Make cppcheck tests work when there are no other tests
Improve cppcheck compatibility