Add tests for error messages, and handling printing to string