add CTest foundamental codes