update hadamard doctest