add test for setVariables function