tweak dividend rules; fixes #254
update test suite