added specs and methods for constructors