Mock the clipboard for most of the tests.

Avoid concurrency issues.