Made stack patch test less brittle.