Minor test fixes.
Modified js_injector for it to be able to communicate properly with comm_manager.