This return type has been changed back and forth when I started to write the test class. It was first an Iterable and test have been failing because I only received one single commit. Changed the code to use List. Found the bug (a missing addParent to the Commit() object .... and forgot to change the return type back to Iterable.