test: add WaitFor func

Change-Id: I3d60ea9701721f9107da5322521a3c742d340646
fs: adding Mac-specific tests, scripting the Finder.

Currently broken. Need to investigate.

Change-Id: I06ba2af751b88ac16e086c39f24617ecec4f6095