Simplified work with entity Book.
Fixed behavior of method identicalTo when it invoked with null argument.