added js unit test for base tests