minor refactoring, added book endpoint
adding integration tests