add test case for uninitialized var