Extract tests to test from the command line

This is needed to support testing in parallel after implementing
parallelisation with Open MPI