Fix binary_attachment command and add tests for this command.
Add new command - BinaryDownloadStatCmd.