add rspec tests for membership_controller