add chngeVariableBrick and fixing test problems