JPlatformTest::testSetState

This checks for correct operation of the __set_state() magic function, if it exists.