cppcheck
fixed tests