Added tests for exporter.js