On the Functional Test of Branch Prediction Units based on Branch History Table