Integration tests for scheduler

@peterbourgon  @jmyounker
I'll add it in a moment.