test wifi connection optimizing