added test cases for add_friend view and changed typo for loginrequiredmixin