Implement metric(s) serialization
add failing test