refactore using before(:each)