Add tests for argv_parser and data_formatter + refactoring