fix memleak of test_backend
fix other memleak + document the issue

now no memleak again, 859 potential memleaks from dash, glibc or libxml