Correct unused variable in book_test.go
Add leak testing code