Added setup and teardown hooks
v0.5.0