fix and serialization test for native java (only for DeleteByQuery)