Added support for default private constructor and appropriate tests.

Added support for default private constructor and appropriate tests.