Test the callbackfunction for lwip