write test to check if some_method returns the sum of all elements of the array
use compact method to stop the code from throwing an exception