Check status code returned in query index command
Unit test for missing index name argument in query index command
Use class command and remove unnecssary command arguments from unit test