Refactor for Exceptions test