Refactor loadTestsFromName in smaller bites.

The logic has been mostly untouched, I just splitted the big method into
smaller ones, and removed some code that was not executed by any test.

Regarding the portions I removed I am not sure it is really dead code,
so I'd like some input from someone who understands this better...