added functional and integration test to user_friendshipmodel and controller