Added unittest for variables insertion