Fixed the tests for the constructors.

Also made error messages for initialization problems more useful.