arithmetic_integers added tests

moved some code out of main and added tests. ref. https://github.com/Hoverbear/rust-rosetta/issues/110