enhance Enhanced testcase

same enhancement to `EnhancedTestCase` as in https://github.com/hpcugent/vsc-base/pull/112