add test for empty string, and fix: to_dict with empty string
Merge branch 'network'