Refactored FormatTime into AbstractTest