add tool.expect.toEqual function and change the logic when the model is array