Fixed support for -host flag in tests

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