Fix regression in test_lib