A car has crashed into a barrier during a safety test.