Build testing

Will now respect the cmake option -DBUILD_TESTING=OFF