Added tests for locals and instance vars