fix tests for the latest TypeScript compiler