re-add c++ tests using cmake and add configuration options