First version of m7d test scheduler. Still needs a lot of fine tuning
but it works for now.