Fix nasty off-by-one error, causing incorrect CDP calculations when adding
new RRAs
better test flexibility - use a specific rrdtool to do the tests