Testing is being carried out on site after asbestos was discovered in a demolished building.