Fix test to assert the correct expected number of loaded commits. Fixes #271