'getChange' algorithm improved. New tests added.