fix unit test problem:close connection after test.
Merge pull request #204 from forumbyr/master

fix unit test problem:close connection after test.