Added test case for addMember method