Test code formatting fixes
Add UTCTime tests

This change also contains fixes for bugs discovered while writing tests