Fix failing tests. Replace ruby to 2.1.1 in travis. Update travis config