js: more testing of nativeMessaging connection