refactor borrowBook and unittest