improved mem leak test diag