scheduler: fix tests