add test case for peer data registration and retrieving.