added tests to help debug the arithmetic