fix test causing stack overflow