Added test support for experiment sharing. Fixed some formatting.