Make init tests check for directory existence and git repo

Fixes #32.