add tests for membership controller