More Replace in Files unit test work:
* Add more checkbox tests
* Another try at fixing the flaky focus test
* Add comments to some test utility functions
* Move non-UI tests into a separate describe()