update unit test functions.