add when_changed when_failed examples to docsite

whitespace fix