Add test for isPeer, rename make_id to makeId