Add filtering_by_friend tests for edge case errors