added test file
Merge branch 'master' of https://github.com/quedah/techgi
added debug infos and close connection if error occur