subtests: Fix tests errors

Fix problems in subtests.
I actually prefer (as does pep) to have only one import per line, it's not a big deal though.