Fix NestedLayoutCaptionHoverTest to work with TB 3.1.3

Change-Id: Ief75a235f8563f9664dd82c9c5a1aab38c7bc77d