config and add some test for Book and Rating