[js_ingest] unit tests added