A 17-year-old driver failed their road test before it even began after being stopped by police in a community safety zone.