Fix test when duration is not specified