Add tests and fix uncovered bugs.

I don't expect this to happen as the timestamp is added by cAdvisor