Hospitals warned against charging for tests