CORE: refactor arithmetic tests.