Added exception handling test