added beforeEach to globally setup tests