What’s causing our new ferrets’ bad behaviour?

My children have been ‘gifted’ a couple of ex-working male ferrets by a friend and, although not biters, they smell pretty bad, pee everywhere and can be quite aggressive to each other, especially, funnily enough, if my friend has been round. Any suggestions?