Fix peek_and_skip for memory provider
Spec more complex behavior of test scheduler