fix test failing incorrectly