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