test peer-resolve, clean it up a bit