Add test helpers
refactor friendships controller to use helpers