fixing closure serialization failures in postgre tests