Added tests and modified addOne so it can handle 9 + 1