CppTools: Tests: Fix leaving test file around

Change-Id: I232194e2693a8024ff67945cbc70049e52b9ef5d
Reviewed-by: David Schulz <david.schulz@digia.com>