A GENERAL MAXIMAL PRECEDENCE TEST