Added unit test for jsviewer writer