Add Extension, Loan and Member classes and some tests