enhance tests readability by using ExpectedException instead of try/catch blocks