moving the spec helper methods in a separate file