Fix js test setup - add some more tests