test for session and connection leaks

For application on 2.0 and 2.1.
I'm not sure why this count is 5 and the next test expects 3.

At the very least these tests pass, but I'm not sure it passes the way I'd expect for it to pass.

Also, I should note that connectionLeakTest() runs before sessionMemoryLeakTest() in my current setup.