Added tests and functionality for friend requests