add r unit test for histograms
runit on histograms added