Pushed duration service argument through C++ side.
Added tests for scheduler.

These test pass meaning the duration code runs. It still may not be correct though.