added js unit test for base tests
Merge pull request #1228 from LorenzoBoccaccia/fix-all-the-tests

added js unit test for base tests