add test for command struct