added reversion tests for testing serialization and deserialization