passing constructor object tests