added --cacheDir option

additionally
* applied --cacheDir to cli test to use checked-in fixtures
* tweaked test argument order