test var handling