Ctest fix

All tests now run using ctest.

A python script has been added that is run after the test executable is built. It reads all the tests and adds them to CTestTestfile.cmake, which is read by ctest when using ```make test```.

Fixes #176.