moved some methods from user to friendships and tested their use