Added unit tests for displayformatter