Add the unit test for testing the error messages on constructors (issue #121).