adapted changeVariableBrick like setVariableBrick, added changeVariableBrick test