add test function.