Added test for custom working directories.