Add integration test case for local vars