port fix from saga-python, fix tests