added test for generic attribute initialization