Fix non exhaustive pattern matching
Don't convert List when only folding
Minor clean up
Fix connectionPoolingEnabled test