change calling conventions for maint periods, improve tests
Merge pull request #246 from ali-graham/26_unsched_maint_tests

change calling conventions for maint periods, improve tests