Convert from t/output to dedicated dirs.

This will hopefully make the tests parallelisable.