Add test cases for setParam.