Fix error running functional tests under Ruby 2.0.0