Clean up test file, watchDirectory accepts an object

See deleted pull request for explanation