Fixed ClassNotFound exception while restoring state. Added SaverTest.