Test case implemented for ApplicationException