sql error also handled and tested
use around and withPool to close the pools after test cases
resolve conflict, and more fixes to tests