tests for membership repository