Fixed connect plugin in the watch and test tasks.