add beforeEach() and afterEach()
Merge pull request #42 from chmanie/master

add beforeEach() and afterEach()