Allow running test suite in parallel through Makefile

make test THREADS=8 now runs the testsuite using 8 processes,
significantly speeding things up.