dev: implement ConvertToTestCommand.