Add tests infrastructure

This PR adds very basic infrastucture which will serve as a prequisite for a variety of tests.
Or does cmake store things in here?