Throw a `DeveloperError` if `speed` is `undefined`.  Add a test case.