correct argument checking test for git hash-object