Added implementation for constructors and constructor tests