refactor test linkedhashmap test