Test for selecting a peer level job

Need to refactor a bit before going further
Preparing repository class to accept job sequencer
Converted GetNextJobToRun to use queue