Fix unit test to get a user's commits