Added tests for InvalidValueForIs
Wrote exception class for InvalidValueForIs
replaced throw_error by throw_exception