added unit test for illegal scaling

(0) -100 -30 -10 -1 +1 +10 tip

mercurial