Check networkState earlier than onload in this test