Add parametrized test

Refactor and unit test DbAssertUtils to centralized the
closeQuietly behavior