Set cmake policy to allow test target name.