Internal exception refactoring.
Tests affected by an internal exceptions refactoring.