tests: install ruby 1.8.7 via RVM if necessary