Fix test so that the wrong result causes a panic