minor bug
(#387)
add test of correlation function calculations
(#387)