bug fixes for test-wifi