Fixed bug in CppUTest check, remove deprecated