Some tested methods may have side effects on the environment. It'd be useful if we could specify `beforeEach` and `afterEach` hooks.