update test helper for developing on ruby 1.9+

Just in case you find this helpful.