Unit tests and time parsing code