Fix Failing Test Logic
introduce tojson methods and Exporter class