extracted creating file objects to spec helper