Add tests for captions and titles