Added test for alternative constructor