added .to_json test