add tests for js entities module