working BaseResourceTest and LoanResourceTest