updated test
dont service host if null _pointer or host destroyed
fixes to work with latest emscripten