TEST update in mongo repository.
TEST update correct in behavior manager.
REFACTOR delete unnecessary hasCode Method.