Add complex tests for #setParams()