Run tests through CTest

This allows using `make test` to automatically run all relevant unit tests through CMake. The exit code will even reflect test success/failure.

There is no 32-bit datagram support yet.