use factory girl and faker
Add member and organization factories
Use factory to create test member
If there is no organization, raise a 404

There always should be, but best be safe.