test for membership should be 'not in'