added spec for friends method and moved it to user model