Removed error branch in error test
Added test case for "no error class" case