Tech Debt: Fixed deprecation warning while running tests

I'm not a huge fan of how exception messages are being deprecated but at least this suppresses the warning while running tests.