Wrote tests for CannotDelegateWithoutIsa
replaced throw_error with throw_exception
Wrote exception class for CannotDelegateWithoutIsa