adding a tests for a leak that I found..
adding the leak fix