Adds tests for the json serialization method
Bug 26860