Added tests for locals