tests: Improve JS interop test