test(UI-TEST/cockpit): add Add variable test

add test case to check the add varible function