fix test for 1.9 and 1.8