[log] Change exceptions in VcsLogJoiner and added several tests.