added test for js message sending