Improve test coverage for books app