Adjust front-end view of friends page, write more tests