test for exeption added