fixed tests for membership