fix JobTest and Test mode for using a source as a sink
Merge pull request #318 from singhala/develop

fix JobTest and Test mode for using a source as a sink