fix test on 1.9+

@jmhodges
fyi @sadfuzzy