Mocked the methods for the commits.