Pill testing will be rolled out at up to 15 music festivals from October, amid calls to extend the service into the general community.