Original commit message from CVS: Add parameter to set the type of test pattern. Fix black test pattern.