Which test is used to differentiate whether Cushing's syndrome is caused by a pituitary tumor or an adrenal tumor?