Fixed all leaks in array_merge_test