Adds the Ajax test function.