CAMEL-7871 fixed test error.

  - fixed testOptimizeHintsForDataMatrix and testReOptimizeHints methods.