add unitest for HC