Rename getFriends to getFriendsList, added tests on it