Finish converting tests to use javascript events to interact with extension.