Added test for modifyVars