improved emscripten test case