deletebook method and test case created