integrate assert functions of test