fixed membership test to account for changes (ALL TESTS PASSING)