added Book model test and made other changes