added tests for book validation