Added 100% test coverage for Format