coap-plugtests: fix cppcheck errors