added spec helpers