working constructor test