extracting common spec_helper setup