Add `beforeTests` and `afterTests` blocks.