splitNumbers and sumIt functions with tests