Added tests for GetStateCommand.