Added tests for list_networks command