Allow custom timeout for `beforeEach`, `afterEach`, `beforeAll`, `afterAll` and `it`

Fix #483