working version of test-wifi