Component constructor test