A combined score test for binary and ordinal endpoints from clinical trials