Fix test suite

This fixes encoding and namespacing issues in test suite I encountered when testing against Ruby 2.1