git tests and utilities