bugfix for beforeEach&afterEach in spec_helper