Add a test function.