Add --watcher=polling option to Test command.

Closes #2099.