Utilizing stress testing and ERM as a function