Updated tests and docstrings for arithmetical functions.