unit tests for ctor contract