fix inverted logic in test on borrow