adding method Peron.to_dict()
addiing test_to_dict()