Added sum_to_n? and testSumToN methods