AddBook method implemented and refactor GetTotal tests