Add test for the command design pattern