update some test function