Fixes #114

Created a func NewTestConn() that takes into account the flag "eshost"