Add some initial testing of JmsConnectionFactory and fix a few little
issues.