Added tests for 'locals'