added books category method and test
added save lib test and method