doctest fixes to model: model when/schedule integration complete