RSpec tests for stats scheduler