Phew talk about obscure. This test case NEVER worked (why do people commit tests that don't work in the first place????) because it used ad_library rather than ad_page_contract to document the template. ad_library fails in ad_make_relative_path in this case though I didn't track down why in detail.