Better unit tests with TypeScript