Added assert for variable access
Added test for object pattern and finding an issue