Added a method for formatting an error message.
Reworked the to() collection methods.
Added missing tests for certain classes.