fixed the friends list and added tests to test it out