Fixed Unit tests to use proper TCP_PORT variable name
Moved possible error output to debug pipe