implement loanService;
fix in tests