Fix for path errors in test_tdef