Added unit tests for Variable.