Readd setup_params
Fixed/restored cmake tests