Fix some specs and add ruby 1.9 for travis