Created and corrected tests for Metric Collector.

Signed off by: Diego Araújo <diegoamc90@gmail.com>