add book method and test case created