Issue #541: make test_ufuncs faster

This makes the test_ufuncs duration go down from 2 min to 1 min here.