Added unitest in test_membership.py