refactoring of spec helper files