add command functional test