Add beforeEach function: set timeout before each test.