added spec testing