util script fixes
add some trivial emscripten test cases