Fixes bug in timestamp dictionary getter. Adds a corresponding test.