added tests for membership API