Fix TestLoanManager.