JObjectTest::testSetError

Tests setting an error.