Polish grammar and wording in the reference manual
Improve error handling in CollectionFactory

This commit improves error handling in CollectionFactory by asserting
preconditions.

In addition, this commit introduces ConnectionFactoryTests.