Add ruby 1.9 and fix test