fix numpy1.5 compatibility of tests
x**2 -> x*x