don't use Object#to_json in tests anymore.