repair improper test assert; thanks jonathansampson; fixes #15771