added a junit test for member registration