Adding unit test for variable parsing