test of getVariance suggested on #528
(#526)