tests: add cmake ctest infrastructure so `make test` can run