Add missing tests for c++, g++ and tar