Test automation of git hook