Add a testing hook to help @jamesoram distinguish between spans

fyi @jamesoram