Tmichelet/ana 513/request errors in connection

to test: 
   make test TESTS=test_connection.TestConnection