replaced throw_error with throw_exception
Wrote tests for DelegationToAClassWhichIsNotLoaded
Wrote DelegationToAClassWhichIsNotLoaded