Fixed typos in tests.
Added connection factory

SenderTest class doesn't take advantage yet!

Issue #8