Joost

Added tests for scheduler and workerthread implementation. 
Added tests for JobComparator