Added testFriends and a test for no newline at end