Add oldtest target to CMake