Add test cases for console command