How to give your portfolio a stress test