Tests will confirm whether the One Direction star was under the influence of drugs at the time of his death.