refactors book test; overrides .equals
refactors book test; overrides .equals for book
implements checkout command