fix pow for broadcasting case
extra tests