Fix remove obsolete debug flags from test scripts