Added workingDirectory configuration option with tests