Add an automated test for handling of 0-speed ways (#996).