Re #8357. Fix memory leaks in test.

Ensure Property objects returned by loadProperty are deleted after use.