warning fixes in cumsum unit tests