tests: Add a test for alloca merging