Complete the implementation and unit test of two kinds of HashMap