Memory leak test