Added tests for metric plugins.