Don't break tests when adding commits to the test repo
There are a few places in the Rspec tests where we use literals to assert the number of expected commits or the last tag information. This MR updates the tests to get the expected values from native git commands instead. This should prevent having to update assertions when new commits are added to the test repo.