Sometimes tests hang while performing requests to the netchecker. To prevent that 5 seconds connection timeout is added. Also @retry decorator is used for re-trying connection if it fails. Change-Id: Iea90a04fc713304fb98807488021be9971273280