added simple constructor and tests