Adding a test function.