Test case for Loan Model