fix test with readline on mac