fix error in tests causing fail