added tests for user_friends view and fixed a bug when there is no friends for users