added testing to book model