During a routine test trip the brakes set and would not release because the system could not build up the required pressure. Through investigation it was determined that the relief (pilot) valve had failed due to contaminates within the oil. Valve replaced, and oil samples will be taken regularly.