Add tests for caption change height functionality