exception handling after exception throwing in test added