Some more tests for to_dict