Added UnitTests for PreemtiveResources

* Added UnitTests
* Changed ordering of "oldest" request for preemptive scheduling to use
the last index on time ties.