Fixed unit tests, adjusted framescheduler to track more meta data, like the frame length