added NaN test for pow
added NaN test for pow

stan-dev/math,stan-dev/math,stan-dev/stan,stan-dev/math,stan-dev/math,stan-dev/math,stan-dev/math,stan-dev/stan,stan-dev/stan,stan-dev/stan,stan-dev/math,stan-dev/stan,stan-dev/math,stan-dev/math