Bugfix and unit test for providing metadata with revenue analytics