Added specs for hooks.

* before and before_each
* after and after_each