added more unit tests for git hook