tests for membership