Brad Pitt to have drug tests in deal with Jolie to see kids