merged the unit test framework from the Frame scheduler and pulled over many fixes for it