i have been to many gun shows where they tried to sell me a "new" rifle. Last guy tried to sell me a Weatherby Vanguard as new and it had scope bases installed on it, no box no manual but he was sure it was new because it had a plastic tube on the bolt knob. If your friend bought the gun from wal mart or bass pro/cabelas he got a new gun, if he got it from a gun show or elsewhere, caveat emptor.
All new guns are test fired and not cleaned but they put just a few test rounds down the barrel and gun shouldnt be copper fouled. Powder residue yes, copper fouling to where you dont get good groups would indicate you got a used gun. If you want to see how much copper fouling is in there get some foaming copper cutting bore cleaner, fill the barrel and let it sit for an hour or more, put a clean rag at the end of the barrel and fill it up again to push out the old foam and you can see the blue fouling pour out. anything under 10 rounds and there isnt much blue that comes out. 20 rounds or more and you should see a lot of blue foam.