add spec testing