test for a stack underflow problem, too