JObjectTest::testGetError

Tests getting a single error.