msi: Fix some leaks in the tests.