Add test for init command
Add test for update command