cmake_test: minor bug fixes (and -> AND)