Fixed test for get all commits method