This was the troublemaker for test failures on both MAC and Debian. I think numarry has a bug in memory managment. So we removed some numarray.array related lines in _givapp function and tests pass again.