refactor and unit tests

Changed the .wordsum() method
to deal with a list ending with a number word.
Added unit test suite, and test cases