Test case for graphic caption parsing