Added unit tests for Commit class