added tests and add_book and fixed book view