Improve tests for utils::Json*_element