Add tests for new time.Time handling.

This commit adds tests to the encoder and decoder for the new time.Time
handling according to RFC3339.