Added unit tests for recore.job and fixed some found bugs in the process.