modify and define new trial class, add the content for regression test(still need modify, haven't done)