Tests: Minor cleanups
Remove some never-run tests. Run the tested cmake
instead of the host cmake
in a few places. Fix a syntax warning in one test.
This should also address a valgrind
failure on one machine where we were accidentally running it on the wrong cmake
.