Introduce unit tests for to_JSON() functions
Introduce unit tests for to_XML() functions