add tests.
div tests + fix.