Resilient stack: add procedure to check it is working.