fix memory leak
a little bit of UI to see the tests