api: test for duration attribute in deploy