added test for second constructor