fix test for invalid value