Wrote tests for the before/after hooks.