tests: fix tests by reordering imports

6 jobs for 28-fix-tests-on-master in 11 minutes and 6 seconds (queued for 10 seconds)