TypeScript applied for test code