Add a test for hoisting instructions with metadata out of then/else blocks

Test for the bug fixed in r215723.