Remove unused variables
Add test for canceling before adding book