The effects of patient characteristics on ambulatory test ordering