extract test utility method to create empty repo
fix #90