Add a test to check if it works with lots of locals