add test for json serialized attribute