Optimize testsuite execution in parallel by launching long tests first

When running the testsuite in machines with many cores, often several cores remain idle for large periods of time while waiting for 2 or 3 long tests to finish. This can be improved by launching the long tests before the short ones.