add command pattern test