Update json serialization test for Rails3 compatibility