chore(test): code clean up, uses setup and teardown
refactor(util): faster idiv implementation