Added before(:all) hook to fix #48, refactored more logic out of before(:each)