add a spec for the edge case on searching for a commit