reading commit objects properly in test case