Improve test cases for network information APIs