This is good advice.Work on your technique, that’s the key. It may take some time but It will improve your speed. Good luck on your next test.
Not much you can do about your top speed, but most people have significant gains they can make by tidying up technique at the start and in the early acceleration phase.
The 40 yard sprint is a standard NFL test, so there are loads of videos online with useful tips for this kind of distance.