Add test for minimal trajectory duration