Add tests for FormatDecoder