Adding test-running to the CMake build.

It can be run with ctest -j4 for parallel testing, or just make test for a
sequential run.