add spec testing of debug