Merge "Fix alloc-dealloc-mismatch (new[] vs delete) in tests."