added test for new constructor