Fix tests and Book model.