Added test for initVars