Refactoring in the tests where exception is expected. After all with every exception comes with a message that will be displayed to the user. The only way to test the msg that comes with the exception is using rules.