add a test for var tag inference