Fixed MetricsModule's serlializer and unit test