handling exception - better testing