Regression tests for GH-286.
Wrapping result of set{Timeout,Interval}.
Merge pull request #287 from herby/gh-286

Wrapping result of set{Timeout,Interval}.