Added tests covering duration capture and multiple parameters.