expose connection for testing

Signed-off-by: Tom Castleman <tom.castleman@b3-it.com>