Fix test op for whole document comparison. Handle null in deepEquals