test for leaks