move all connection statistics code to Test.Utils.
change default error type from EitherT T.Text to EitherT SomeException and rewrite withTestTable