Make tests run faster under Ruby 1.8

we do this by fully-qualifying classes, defines and variables.