Move formats constants and test add command.