horizontalFlipping parameter, fix tests