Created a test function.