Add a testsuite framework copied from git-core