Adding unit tests for Infinispan internal utils, addressing other code review comments