test_cls_rbd: add tests for cls_rbd image index

Signed-off-by: Haomai Wang <haomaiwang@gmail.com>
ImageCtx: Fix uninitialized variable

Signed-off-by: Haomai Wang <haomaiwang@gmail.com>