Minor fix (get_caption), style fix, test added