first minor code improvements

add RegressionTest - fixes #264

(0) -30 -10 -2 +2 +10 +30 tip

mercurial