test readHeadoffset after randomly merging

@jakebiesinger @JavierJia @anbangx @Elmira88 please have a look. complete a pipeline test to test whether readHeadOffset still keep correct offset after our P4 random merging. 
And I already add expected results automatic creating function to compare our actual results, now the test is passed.